//
//  UserTool.m
//  Weibo
//
//  Created by Anasue on 9/18/15.
//  Copyright (c) 2015 Anasue. All rights reserved.
//

#import "UserTool.h"
#import "HttpTool.h"
#import "MJExtension.h"

@implementation UserTool

+ (void)unreadCountWithParams:(UnreadCountParam *)params success:(void(^)(UnreadCountResult *))success failure:(void (^)(NSError *))failure
{
    [self getWithUrl:@"https://rm.api.weibo.com/2/remind/unread_count.json" param:params resultClass:[UnreadCountResult class] success:success failure:failure];
}

+ (void)userInfoWithParams:(UserInfoParam *)params success:(void(^)(UserInfoResult *))success failure:(void (^)(NSError *))failure
{
    [self getWithUrl:@"https://api.weibo.com/2/users/show.json" param:params resultClass:[UnreadCountResult class] success:success failure:failure];
}

@end
